import requests

# db test
# url = 'http://127.0.0.1:8501/api/db/query'
# data = {
#     'query': 'SELECT * FROM test.products LIMIT 10;'
# }
#
# response = requests.post(url, json=data)
# print(f"状态码: {response.status_code}")
# print(f"响应内容: {response.json()}")

# kb test

requests.post("http://127.0.0.1:8501/api/kb/build")
# url = 'http://127.0.0.1:8501/api/kb/query'
# data = {
#     'query': 'doris的版本','k': 3
# }
#
# response = requests.post(url, json=data)
# print(f"状态码: {response.status_code}")
# print(f"响应内容: {response.json()}")

